﻿// Original author contact info: Owen Emlen (owene_1998@yahoo.com)
// Note: other individuals may also have contributed to this code
// Project hosted on CodePlex.com as of 1/10/2009 at http://www.codeplex.com/EmlenMud
using System.Runtime.Serialization;
using System;
using System.ComponentModel;

namespace BrainTechLLC
{
    [Serializable]
#if NO_SILVERLIGHT
    [Browsable(true)]
    [TypeConverter(typeof(ExpandableObjectConverter))]
#endif
    [DataContract]
    public class SizeInt : Vector4BaseInt, ISizeInt
    {
        public Vector4BaseInt SizeVector { get { return this; } }

        public int Length { get { return SizeVector.X; } set { SizeVector.X = value; } }
        public int Width { get { return SizeVector.Y; } set { SizeVector.Y = value; } }
        public int Height { get { return SizeVector.Z; } set { SizeVector.Z = value; } }

        public SizeInt(int x, int y, int z, int w) : base(x, y, z, w) { }
        public SizeInt(int x, int y, int z) : base(x, y, z) { }
        public SizeInt() { }
    }
}
